package com.zhanghe.study.design_pattern.decorator_pattern;

/**
 * @author zh
 * @date 2022/10/21 10:24
 */
public abstract class Decorator extends Component  {

    private Component component;

    public Decorator(Component component){
        this.component = component;
    }

    @Override
    public void operation() {
        component.operation();
    }
}
